//This file is added by lcl at 2012-09-10
package com.shengyin.ec.service.alliance;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shengyin.ec.model.dao.alliance.AllianceDetailDao;
import com.shengyin.ec.model.entity.AllianceDetail;

@Service("allianceDetailService")
public class AllianceDetailServiceImpl implements AllianceDetailService {
	
	@Autowired
	AllianceDetailDao allianceDetailDao;

	@Override
	public List<AllianceDetail> getAllianceDetailByCompanyId(long id) {
		return allianceDetailDao.getAllianceDetailByCompanyId(id);
	}
	
	@Override
	public void createDetail(AllianceDetail allianceDetail){
		allianceDetailDao.save(allianceDetail);
	}
}